import request from "./http";

//手记精选列表
export function getnotes(params){
    return request({
        url:"/notes",
        method:"get",
        params
    })
}


//热门搜索关键词
export function gethotsearch(params){
    return request({
        url:"/search/recommend_kws",
        method:"get",
        params
    })
}
//搜索结果列表
export function getresult (params){
    return request({
        url:"/search",
        method:"get",
        params
    })
}
//创作人&创作机构筛选列表
export function getcreators (params){
    return request({
        url:"/creators",
        method:"get",
        params
    })
}

//手记手记内容详情
export function getnote(noteId){
    return request({
        url:`/note/${noteId.noteId}`,
        method:"get",
    })
}
//手记评论列表
export function getcommentnew(noteId){
    return request({
        url:`/note/${noteId.noteId}/comment`,
        method:"get",
    })
}
//视频文章相关视频
export function getarticle(articleId){
    return request({
        url:`/article/${articleId.articleId}`,
        method:"get",
    })
}
//视频文章评论
export function getcomments(params){
    return request({
        url:"/comments",
        method:"get",
        params
    })
}
//首页选项卡选项
export function getconfig(params){
    return request({
        url:"/home/config",
        method:"get",
        params
    })
}
//首页每日精选
export function getselection(params){
    return request({
        url:"/home/selection",
        method:"get",
        params
    })
}
//搜索页所有分类
export function getdiscovery(params){
    return request({
        url:"/page/discovery",
        method:"get",
        params
    })
}
//入场必看
export function getmustSee(params){
    return request({
        url:"/home/mustSee",
        method:"get",
        params
    })
}
//关注
export function getfeed(params){
    return request({
        url:"/feed",
        method:"get",
        params
    })
}
//推荐
export function getrecommend(params){
    return request({
        url:"/home/recommend",
        method:"get",
        params
    })
}

//热门
export function gethot(params){
    return request({
        url:"/home/hot",
        method:"get",
        params
    })
}
//剧情短片
export function getchannelplot(params){
    return request({
        url:"/home/cateRecommend?cateName=%E5%89%A7%E6%83%85%E7%9F%AD%E7%89%87&channel=home_channel_plot",
        method:"get",
        params
    })
}
//创意
export function getchannelcreative(params){
    return request({
        url:"/home/cateRecommend?cateName=%E5%88%9B%E6%84%8F&channel=home_channel_creative",
        method:"get",
        params
    })
}
//特殊摄影
export function getphotography(params){
    return request({
        url:"/home/cateRecommend?cateName=%E7%89%B9%E6%AE%8A%E6%91%84%E5%BD%B1_%E5%BB%B6%E6%97%B6%2C%E7%89%B9%E6%AE%8A%E6%91%84%E5%BD%B1_%E8%88%AA%E6%8B%8D%2C%E5%99%A8%E6%9D%90_%E6%97%A0%E4%BA%BA%E6%9C%BA&channel=home_channel_photography",
        method:"get",
        params
    })
}
//旅拍
export function getshootingtour(params){
    return request({
        url:"/home/cateRecommend?cateName=Vlog_%E6%97%85%E8%A1%8C%2C%E6%97%85%E6%8B%8D&channel=home_channel_travel",
        method:"get",
        params
    })
}
//干货教程
export function getcourse(params){
    return request({
        url:"/home/cateRecommend?cateName=%E5%B9%B2%E8%B4%A7%E6%95%99%E7%A8%8B&channel=home_channel_backstage",
        method:"get",
        params
    })
}
//混剪
export function getmontage(params){
    return request({
        url:"/home/cateRecommend?cateName=%E6%B7%B7%E5%89%AA&channel=home_channel_mix_cut",
        method:"get",
        params
    })
}
//器材党
export function getequipment(params){
    return request({
        url:"/home/cateRecommend?cateName=%E5%99%A8%E6%9D%90&channel=home_channel_equipment",
        method:"get",
        params
    })
}
//动画
export function getanimation(params){
    return request({
        url:"/home/cateRecommend?cateName=%E5%8A%A8%E7%94%BB&channel=home_channel_animation",
        method:"get",
        params
    })
}
//Vlog
export function getVlog(params){
    return request({
        url:"/home/cateRecommend?cateName=Vlog&recommend_time=1654012700&channel=home_channel_vlog",
        method:"get",
        params
    })
}
//古风
export function getantiquities(params){
    return request({
        url:"/home/cateRecommend?cateName=%E5%8F%A4%E9%A3%8E&channel=home_channel_antiquity",
        method:"get",
        params
    })
}
//广告
export function getadvertising(params){
    return request({
        url:"/home/cateRecommend?cateName=%E5%B9%BF%E5%91%8A%2C%E5%AE%A3%E4%BC%A0%E7%89%87&channel=home_channel_ad",
        method:"get",
        params
    })
}